package bat.ke.qq.com.proxy;

import lombok.extern.slf4j.Slf4j;

/**
 * 静态代理
 */
@Slf4j
public class UserServiceProxy implements UserService {

    private UserService userService;

    public UserServiceProxy(final UserService userService) {
        this.userService = userService;
    }

    @Override
    public void login() {
        Long  start = System.currentTimeMillis();
        userService.login();
        log.info("调用时间：" +(System.currentTimeMillis()-start));

    }

    @Override
    public void findAll() {

    }


}